package org.mzy.system.mapper;


import org.apache.ibatis.annotations.Param;
import org.mzy.basic.mapper.BaseMapper;
import org.mzy.system.domain.Permission;

import java.util.List;

public interface PermissionMapper extends BaseMapper<Permission> {

    Permission findBySn (String permissionSn);

    void addMiddle(@Param("rid") Long id, @Param("permissions") List<Long> permissions);

    void deleteMiddle(Long id);

    List<String> findByLogininfoId(Long logininfoId);
}
